package com.shsmi.jc.seed.security.common;

import com.fasterxml.jackson.annotation.JsonValue;

public enum ErrorCode {


    DATA_NOT_EXIST(10001),
    UNAUTHORIZED(20001),
    JWT_TOKEN_EXPIRED(20002);

    private Integer errorCode;

    private ErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    @JsonValue
    public Integer getErrorCode() {
        return errorCode;
    }
}
